package com.mqtt.ctwingmqtt.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mqtt.ctwingmqtt.domain.PageResult;
import com.mqtt.ctwingmqtt.domain.ResponseResult;
import com.mqtt.ctwingmqtt.domain.dto.DeviceDto;
import com.mqtt.ctwingmqtt.domain.entity.DeviceEntity;
import com.mqtt.ctwingmqtt.domain.vo.DeviceVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface DeviceService extends IService<DeviceEntity> {
    Boolean add(DeviceDto deviceDto);

    Boolean delete(Long id);

    Boolean update(DeviceDto deviceDto);


    List<DeviceVO> selectAll();

    DeviceVO selectOne(Long id);

    List<DeviceVO> selectPage(DeviceDto deviceDto);

    Map<Integer, String> getmp(String deviceAddress);

    String getProductName(String deviceAddress);

    ResponseResult<String> addAll(MultipartFile file);
}
